package com.planet.db.dao;

import com.planet.db.model.User;
import com.planet.db.model.UserKey;
import com.planet.query.UserQuery;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    //插入用户
    int insertSelective(UserQuery userQuery);

    //获取用户信息
    User selectByPrimaryKey(String userId);

    //检查用户名是否存在
    String checkUserName(String userName);

    //登陆
    String login(@Param("userName")String userName, @Param("passWord")String passWord);

}